<html>
<head><meta charset="utf-8"><title>rainbow highlighting · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rainbow.20highlighting.html">rainbow highlighting</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="229778386"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rainbow%20highlighting/near/229778386" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rainbow.20highlighting.html#229778386">(Mar 11 2021 at 01:35)</a>:</h4>
<p>Is there any way to turn on rainbow highlighting in VS Code? The code seems to only be hooked up to the CLI interface, and I can't find it in the docs either</p>



<a name="229795307"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rainbow%20highlighting/near/229795307" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rainbow.20highlighting.html#229795307">(Mar 11 2021 at 05:11)</a>:</h4>
<p>It's gone now, and was broken before. I don't think it plays very well with semantic highlighting. It worked when we hod our own implementation of that.</p>



<a name="229831580"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rainbow%20highlighting/near/229831580" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rainbow.20highlighting.html#229831580">(Mar 11 2021 at 11:11)</a>:</h4>
<p>Yeah, it's a bit of a dead code now sadly. Though, I wonder if we can resuscitate that? I imagine we can add 32 hard-coded modifires with names like "RainbowN", and then just apply those in semantic highlighting?</p>



<a name="229831942"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rainbow%20highlighting/near/229831942" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rainbow.20highlighting.html#229831942">(Mar 11 2021 at 11:14)</a>:</h4>
<p>welp, that won't work, because modifiers are encoded as bitset, so there are 32 total. </p>
<p>So the client side needs to implement the custom decorator-based logic (</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>